import { http } from "../thaHttp";


//请求数据
// export const getPageOne1 = () => http.get("/DingEchartsDemo");
// export const getPageOne = () => http.get("/DingPageOne");
// export const getPageOne2 = () => http.get("/DingRegion");
export function PageOne2(){
    return http({
        url:`/DingRegion`,
        method:'get',
    })
}
export function PageOne(){
    return http({
        url:`/DingPageOne`,
        method:'get',
    })
}
export function PageOne1(){
    return http({
        url:`/DingEchartsDemo`,
        method:'get',
    })
}
//修改
export function Update(res,data,data1) { //axios实例
    return http({
        url: `/${res}/${data.id}`, //请求地址 Reply
        method: 'patch', //请求的方式
        data:data1//需要传输的数据
    })
}
//新增
export function UpAdd(res,data1) { //axios实例
    return http({
        url: `/${res}/`, //请求地址 Reply
        method: 'post', //请求的方式
        data:data1//需要传输的数据
    })
}
//删除
export function UPDel(res,data) { //axios实例
    return http({
        url: `/${res}/${data.id}`, //请求地址 Reply
        method: 'delete', //请求的方式
    })
}

